package com.ingenieria.industrial.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class SpringParam {
    
    public HttpServletRequest request;      // REQUEST DE STRUTS
    public HttpServletResponse response;    // RESPONDE DE STRUTS    
    public Object formBean;                 // OBJETO NUESTRO (BEAN) PARA MAPEAR UN FORMULARIO. RECORDAR HACER UN new() PREVIO A CADA MAPEADO
    public Object extraBean;                // OBJETO ADICINAL USADO PARA PASAR OTROS DATOS AL hayErrorInput().

    public SpringParam( HttpServletRequest request, HttpServletResponse response ) {
        this.request = request;
        this.response = response;
    }

    public void setForm( Object formBean ) {
        this.formBean = formBean;
    }

    public Object getForm() {
        return formBean;
    }

    public void setExtraBean( Object extraBean ) {
        this.extraBean = extraBean;
    }

    public Object getExtraBean() {
        return extraBean;
    }

    @Override
    public String toString() {
        return this.request.toString();
    }

}
